package com.example.gateway.controller;

import cn.hutool.core.bean.BeanDesc;
import cn.hutool.core.bean.BeanUtil;
import com.example.gateway.utils.ApplicationContextHolder;
import org.example.util.JavaTreeUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: TestControlle
 * @Description:
 * @Author: YourName
 * @Date: 2024/12/30
 */


@RestController
public class TestControlle {
    @ResponseBody
    @RequestMapping("/test")
    public String test(){

        BeanDesc beanDesc = BeanUtil.getBeanDesc(TestControlle.class);

        TestControlle testControlle1 = (TestControlle)ApplicationContextHolder.getBean("testControlle");

        return JavaTreeUtil.capitalize("test");
    }

}
